package com.xinyu126.location.trace

import android.app.Application
import android.util.Log
import com.baidu.location.LocationClient
import com.baidu.mapapi.SDKInitializer
import com.magical.location.client.ILocationAble
import com.magical.location.client.ILocationClient
import com.xinyu126.net_trace.client.BaiduLocationClient



class MainApplication : Application() , ILocationAble {
    
    @Override
    override fun onCreate() {
        super.onCreate()
        SDKInitializer.setAgreePrivacy(this, true)
        SDKInitializer.initialize(this)
        LocationClient.setAgreePrivacy(true)

        Log.d("MainApplication", "onCreate")
    }

    override val client: ILocationClient by lazy {
        BaiduLocationClient(this)
    }
}